package products;

public class Main {
	public static void main(String args[])
	{
		Product product = new Product("Produs1","Pantaloni",50.0, null);
		System.out.println("Produs");
		System.out.println(product);
		ProductStateMemory memory = new ProductStateMemory();
		memory.setMemento(product.Memento());
		product.setNume("Produs2");
		product.setDescription("tricou");
		product.setCost(30.0);
		System.out.println("Produs Modificat:");
		System.out.println(product);
		product.restoreMemento(memory.getMemento());
		System.out.println("Revenire la produs initial:");
		System.out.println(product);
		
	}
}
